<?php
/**
 * Controller file which provides session, html and database capabilities
 */
/*. require_module 'standard'; .*/
//error_reporting(E_ALL);
/**
 * Starts a session
 */
require_once 'session.php';
/**
 * Connect to the database
 */
require_once 'db/Db.php';
require_once 'db/connect.php';
/**
 * Include commonly accessed database methods used by the templates
 */
require_once 'db/common.php';
/**
 * Provides Html capabilities
 */
require_once 'Html.php';
$html = new Html();
/**
 * Provides Helper methods
 */
require_once 'Helper.php';
$helper = new Helper();
/**
 * Process $_GET and $_POST
 */
$_GET = $helper->stripAllSlashes($_GET);
$_POST = $helper->stripAllSlashes($_POST);
/**
 * Set currency format
 */
setlocale(LC_MONETARY, 'en_NZ');
?>
